package com.atmc.service;

import com.atmc.entity.ArtLiker;
import com.atmc.entity.ResponseResult;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface ArtLikerService {
    Long queryByIdAndName(@Param("articleId")Long articleId, @Param("userName")String userName);
    int insertOne(@Param("articleId")Long articleId,@Param("userName")String userName);
    int updateOneCre(@Param("articleId")Long articleId,@Param("userName")String userName);
    int updateOneDes(@Param("articleId")Long articleId,@Param("userName")String userName);
    public ResponseResult requestLiker(@RequestParam("id)") Long id, @RequestParam("userName")String userName);
    List<Long> selectIdByName(@Param("userName")String userName);
    int deleteOneByIdAndName(@Param("articleId")Long articleId,@Param("userName")String userName);
}
